package com.woniuxy.sm.service.impl;

import com.woniuxy.sm.bean.Goods;
import com.woniuxy.sm.bean.PageBean;
import com.woniuxy.sm.mapper.GoodsMapper;
import com.woniuxy.sm.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class GoodsServiceImpl implements GoodsService {
    /**
     * 注入持久层对象不
     */
    @Autowired
    private GoodsMapper goodsMapper;

	
    
	private int count = 0;



	@Override
	public List<Goods> findHot() {
		return goodsMapper.findHot();
	}
	
	@Override
	public List<Goods> findHot2() {
		return goodsMapper.findHot2();
	}

	@Override
	public List<Goods> findNew() {
		return goodsMapper.findNew();
	}

	@Override
	public List<Goods> findNew2() {
		return goodsMapper.findNew2();
	}

	@Override
	public Goods findById(int id) {
		return goodsMapper.findById(id);
	}

	@Override
	public List<Goods> findLike(String str) {
		return goodsMapper.findLike(str);
	}
}
